home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / pure_adr.swf / scripts / DefineSprite_179 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-11-12  |  326 b   |  29 lines

  1. rand = random("6");
  2. if(rand == "1")
  3. {
  4.    gotoAndStop(7);
  5. }
  6. if(rand == "2")
  7. {
  8.    gotoAndStop(7);
  9. }
  10. if(rand == "3")
  11. {
  12.    gotoAndStop(7);
  13. }
  14. if(rand == "4")
  15. {
  16.    gotoAndStop(9);
  17. }
  18. if(rand == "5")
  19. {
  20.    if(eval("/:vidas") < "6")
  21.    {
  22.       gotoAndStop(12);
  23.    }
  24.    else
  25.    {
  26.       gotoAndStop(7);
  27.    }
  28. }
  29.